// main.js入口文件

// 引入vue包
import Vue from 'vue'
// 导入app.vue文件
import App from './App.vue'

//引入store当中的index.js暴露出来的对象
import store from './store/index.js'; 


// 生产环境下的警告
Vue.config.productionTip = false



new Vue({
  store,//注册store对象
  render: h => h(App),
}).$mount('#app')


/* 
es6对象的解构赋值



*/
/* let obj = {
  name:'hanhan',
  age:18
} */
/* let name = 'hanhan';
let age = 18;
let obj = {
  name,
  age
}
console.log(obj); */
/* function fun(obj){
  console.log(obj);
  console.log(obj.name);
  console.log(obj.age);
}
fun(obj); */
/* function foo({name,age}){
  console.log(name);
  console.log(age);
}
foo(obj);
let obj1 = {
  name1:'lele',
  age1:18
}
let {name1,age1} = obj1;
console.log(name1);
console.log(age1); */

// console.log(obj.name);


